package com.leng.Service.Impl;

import com.leng.Mapper.UserMapper;
import com.leng.Service.UserService;
import com.leng.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 冷俊杰
 * @Description: TODO
 * @DateTime: 2022/7/5 12:25
 **/
//表示这里是实现类
@Service
public class UserServiceImpl implements UserService {

    @Resource//自动注入
    private UserMapper userMapper;

    public List<User> UserList() {
        return userMapper.UserList();
    }
}
